package com.danicsoft.daide.command;

import com.danicsoft.daide.binary.Connection;
import com.danicsoft.daide.token.TokenParser;

/**
 * This class can be overridden to only implement the commands that you want to
 * accept. The default behaviour is to send a HUH message back to the server for
 * any recieved command.
 * 
 * @author Daniel Yule (daniel.yule@gmail.com)
 * @version 1.0
 */
public abstract class DefaultCommandTarget extends CommandTarget {

	/**
	 * 
	 * @param command
	 * @see com.danicsoft.daide.command.CommandTarget#ReceivedSolo(com.danicsoft.daide.command.SoloCommand)
	 */
	@Override
	protected void ReceivedSolo(SoloCommand command) {
		badCommand(command);
		
	}


	@Override
	protected void AcceptedDraw(DrawCommand command) {
		badCommand(command);
		
	}


	@Override
	protected void ReceivedDraw(DrawCommand command) {
		badCommand(command);
		
	}




	@Override
	protected void RejectedDraw(DrawCommand command) {
		badCommand(command);
		
	}

	/**
	 * Construct a new DefaultCommandTarget that uses the given connection and
	 * parses using the given parser.
	 * 
	 * @param conn
	 *        The connection that we are connected with.
	 * @param parser
	 *        The parser that we will use to pare incoming and outgoing
	 *        messages.
	 */
	public DefaultCommandTarget(Connection conn, TokenParser parser) {
		super(conn, parser);

	}

	@Override
	protected void AcceptedGoFlag(GoFlagCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedIam(IamCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedLoad(LoadCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedMap(MapCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedName(NameCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedNot(NotCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedObserver(ObserverCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedSave(SaveCommand command) {
		badCommand(command);

	}

	@Override
	protected void AcceptedTime(TimeCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedAdminMessage(AdminMessageCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedGoFlag(GoFlagCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedHello(HelloCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedHistory(HistoryCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedHuh(HuhCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedIam(IamCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedMap(MapCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedMapDefintion(MapDefinitionCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedMissing(MissingCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedName(NameCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedNot(NotCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedNow(NowCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedObserver(ObserverCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedOff(PissOffCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedOrder(OrderCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedParenthesis(ParenthesisCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedSave(SaveCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedSubmit(SubmitCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedSupplyOwnership(SupplyOwnershipCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedThanks(ThanksCommand command) {
		badCommand(command);

	}

	@Override
	protected void ReceivedTime(TimeCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedAdminMessage(AdminMessageCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedGoFlag(GoFlagCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedHello(HelloCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedHistory(HistoryCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedIam(IamCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedMap(MapCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedName(NameCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedNot(NotCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedNow(NowCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedObserver(ObserverCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedOrder(OrderCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedSave(SaveCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedSubmit(SubmitCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedSupplyOwnership(SupplyOwnershipCommand command) {
		badCommand(command);

	}

	@Override
	protected void RejectedTime(TimeCommand command) {
		badCommand(command);

	}


	@Override
	protected void ReceivedSummary(SummaryCommand command) {
		badCommand(command);
		
	}

}
